<legend><?php if(isset($item_name))echo sprintf(__('Add %s',true),$item_name) ;?></legend>
<script>
    Modalbox.resizeToContent();
<?php
if(isset($saved) && $saved){
    echo "Modalbox.hide({afterHide:reloaditems})";
}
?>
</script>
<?php
echo $form->hidden('Item.committee_id',array('value'=>$dcommittee['Committee']['id']));
echo $form->input('Item.name', array('error'=>__('This field cannot be left blank',true),'size'=>'30','value'=>$formname));
echo $form->input('Item.short_name', array('value'=>$formshort_name,'error'=>array(
    'required'=>__('This field cannot be left blank',true),
    'alphaNumeric'=>__('Alphabets and numbers only',true),
    'unique'=>__('This name already taken in this committee',true)
)));
echo $form->input('Item.description',array('value'=>$formdescription));
if(isset($returnpage)){
    echo $form->hidden('returnpage',array('value'=>$returnpage));
}
?>
